package com.triones.api.mapper.interlace;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.api.entity.interlace.dto.InterlaceMemberDO;
import com.triones.api.entity.interlace.vo.CustomInterlaceMemberVO;
import com.triones.api.entity.interlace.vo.InterlaceMemberVO;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表
 */
public interface InterlaceMemberMapper extends BaseMapperPlus<InterlaceMemberMapper, InterlaceMemberDO, InterlaceMemberVO> {

    /**
     * 获取用户编号最大值
     * @return
     */
    Integer getUserNoMax();

    /**
     * 用户列表（分页）
     * @param build
     * @param wrapper
     * @return
     */
    Page<CustomInterlaceMemberVO> selectPageList(@Param("page") Page<Object> build,@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);

    /**
     * 用户详情
     * @param id
     * @return
     */
    CustomInterlaceMemberVO getDetail(@Param("id") Long id);
}
